package com.cx.mall.api.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class OpenFeignConfig {
    //@Bean
    public Retryer feignRetryer() {
        // 间隔100ms，最大间隔1s，重试3次
        return new Retryer.Default(100, 1000, 3);
    }
}
